﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Data.Common;
using System.Text;

namespace FwProject.EntityFrameworkCore
{
  public  class AppShopDbContextOptionsConfigurer
    {
        public static void Configure(
           DbContextOptionsBuilder<FwProjectAppShopDbContext> dbContextOptions,
           string connectionString
       )
        {
            /* This is the single point to configure DbContextOptions for MultipleDbContextEfCoreDemoDbContext */
            dbContextOptions.UseSqlServer(connectionString, b => b.UseRowNumberForPaging());
        }

        public static void Configure(
            DbContextOptionsBuilder<FwProjectAppShopDbContext> dbContextOptions,
            DbConnection connection
        )
        {
            /* This is the single point to configure DbContextOptions for MultipleDbContextEfCoreDemoDbContext */
            dbContextOptions.UseSqlServer(connection, b => b.UseRowNumberForPaging());
        }
    }
}
